package main;

import model.DefaultModelModule;

import algo.DefaultAlgoModule;

import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;

import tools.Configpath;
import view.DefaultMainWindowModule;
import view.MainWindow;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Injector inj = Guice.createInjector(new Module() {
			
			@Override
			public void configure(Binder binder) {
				
				new DefaultMainWindowModule().configure(binder);
				new DefaultModelModule().configure(binder);
				new DefaultAlgoModule().configure(binder);
				binder.bind(String.class).annotatedWith(Configpath.class).toInstance("data.xml");
				
			}
		});
		
		inj.getInstance(MainWindow.class);
	}

}
